/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2204 - Reg2
 * <p>Powered by webrx On 2022-09-14 11:04:46
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Reg2 {
    public static void main(String[] args) {
        String str = "sqlserver";
        //判断有没有数字 \d 代表 [0-9] 1个
        if(str.matches(".*\\d.*")){
            System.out.println("有数字");
        }else{
            System.out.println("没有数字");
        }
    }
}
